[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 biosmemory()            Return Memory Size

 #include   <bios.h>

 int        biosmemory(void);

    biosmemory() uses BIOS interrupt 0x12 to return memory size in 1K
    blocks.

       Returns:     Memory size

   Portability:     IBM PC and compatibles only.

   -------------------------------- Example ---------------------------------

 The following statements report the size of memory.

           #include <stdio.h>              /* for printf */
           #include <bios.h>               /* for biosmemory */

           main()
           {
               printf("%d K of memory present\n",biosmemory());
           }




This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson